<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>
    [#import "/admin/include/admin_pagination.ftl" as p/]
    [#include "/admin/include/admin_static.htm"]
    <script>
        $(function () {
            $("#query").click( function () {
                $("#searchForm").attr("action", "${path}/admin/account/getkhtj.aspx").submit();
            });

            $("#export").click( function () {
                $("#searchForm").attr("action", "${path}/admin/account/exportgetkhtj.aspx").submit();
            });
        });
    </script>
</head>
<body>
<div class="main_admin_content">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>客户投标代收统计</legend>
    </fieldset>
    <form id="searchForm" method="post"
          action="${path}/admin/account/getkhtj.aspx">
        <table class="search_table_div">
            <tr>
                <td class="column">日期：</td>
                <td><input type="text" onclick="WdatePicker();"
                           value="${begin_date }" name="begin_date" class="short"
                           readonly="readonly"/> <i>至</i>
                    <input type="text" onclick="WdatePicker();" value="${end_date }" name="end_date" class="short" readonly="readonly"/>
                [@u.select list={"":"全部","0":"月","1":"天"}
                name="is_day" value="${(is_day)!''}" /]
                </td>
                <td>
                    用户名：
                </td>
                <td>

                    <input type="text" name="userName" value="${userName}"/>
                </td>
                <td>
                    真实姓名：
                </td>
                <td>

                    <input type="text" name="realname" value="${realname}"/>
                </td>
            </tr>

            <tr>
                <th colspan="100" class="btn_td">
                    <input id="export" type="button"  class="layui-btn"
                           style="float:left;width: 100px; heigth: 30px; line-height: 30px" value="导出">
                    <input id="query"
                           type="button"  class="layui-btn" value="查询"/> <input
                        onclick="resent();" type="button"  class="layui-btn"
                        value="清空"/></th>
            </tr>
        </table>
    </form>
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">



        </colgroup>
        <thead>
        <tr>

            <th>用户名</th>
            <th>
                真实姓名
            </th>
            <th>投标金额</th>
            <th>待收金额</th>
            <th>客服名称</th>
        </tr>
        </thead>
    [#list accounts as log]
        <tr>
            <td>${(log.user_name)!''}</td>
            <td>${(log.real_name)!''}</td>
            <td>${(log.account)!'' }</td>
            <td>￥${(log.wait_account)!''}</td>
            <td>${(log.name)!'' }</td>
        </tr>
    [/#list]

    </table>

    [@p.pager pager = page parameterMap={"realname":"${realname}","account_type":"${account_type}","userId":"${userId }","userName":"${userName }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/account/getkhtj.aspx"/]
    </form>
</div>
</body>
</html>